package com.webull.information.center.carwler.common.model.hs.parm;

import java.util.Date;
import java.util.Optional;

public class PageParm {
	private Date startDate;
	private Date endDate;
	// private Integer start = 0;
	private Integer pageNo;
	private Integer pageSize;

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Integer getStart() {
		return Optional.ofNullable(pageNo).orElse(0) * pageSize;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
